Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Quick Terminal ("Quake-style" terminal) #2320

Merged
merged 20 commits into from
Sep 29, 2024
Merged

macOS: Quick Terminal ("Quake-style" terminal) #2320

merged 20 commits into from
Sep 29, 2024

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Sep 29, 2024

This introduces the "quick" terminal. The quick terminal is a singleton terminal instance that can be summoned with a keybinding. The quick terminal animates in from the top, left, bottom, or right of the screen. When the terminal loses focus, it disappears until the key binding is pressed again. The terminal maintains its state so that when it appears you can pick up directly where you left off.

Usage

You can access the quick terminal through the menu View -> Quick Terminal or through the toggle_quick_terminal binding. The latter is more useful (and makes it actually quick). The binding is unbound by default.

By leveraging the recently merged global key binds (#2299), you can create a global keybind that can work even when Ghostty is unfocused. For example keybind = global:grave_accent=toggle_quick_terminal.

Limitations

  • No tabs in the quick terminal (fixable with a custom tab bar)
  • No fullscreen in the quick terminal (fixable, may do it before merge unsure yet)
  • No titlebar so you can't see the title (fixable with a custom title bar)
  • No window save state or restore on app restart (fixable but I'm not sure it makes sense for this feature yet)

Notably, splits do work.

Demo

CleanShot.2024-09-28.at.18.56.24.2.mp4

TODO

  • Bugs with multiple monitors
  • Fullscreen (maybe)

@mitchellh mitchellh merged commit 4796583 into main Sep 29, 2024
34 checks passed
@mitchellh mitchellh deleted the slideterm branch September 29, 2024 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant